<template>
  <div>
    <el-table :data="tab" style="width: 100%">
      <!-- 图片列 -->
      <el-table-column label="封面" width="100">
        <template slot-scope="scope">
          <el-image
            style="width: 100px; height: 100px"
            :src="scope.row.bookInfo.bookImage"
            :preview-src-list="[scope.row.bookInfo.bookImage]">
          </el-image>
        </template>
      </el-table-column>

      <!-- 书名列 -->
      <el-table-column prop="bookInfo.bookName" label="书名"></el-table-column>

      <!-- 作者列 -->
      <el-table-column prop="bookInfo.bookAuth" label="作者"></el-table-column>

      <!-- 收藏量列 -->
      <el-table-column prop="score" label="当前收藏量"></el-table-column>


      <!-- 操作列 -->
      <el-table-column label="收藏状态">
        <template slot-scope="scope">
          <el-button
            v-if="scope.row.userCollectionStatusl === 1"
            type="primary"
            @click="BookListing(scope.row)"
          >
            收藏
          </el-button>
          <el-button
            v-else
            type="warning"
            @click="BookRemoval(scope.row)"
          >
            取消收藏
          </el-button>
        </template>
      </el-table-column>

       <el-table-column  label="添加到购物车">
           <template slot-scope="scope">
               <el-button type="primary" icon="el-icon-circle-plus-outline" circle></el-button>
           </template>
       </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
    name: "AssignStaff",
    data() {
      return {

      }
    },
    methods: {


    },
	created() {

  	}
  }

</script>

<style>
</style>
